package com.csz.service.impl;


import com.csz.bean.Student;
import com.csz.dao.StudentDao;
import com.csz.dao.impl.StudentDaoImpl;
import com.csz.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {


    private StudentDao studentDao = new StudentDaoImpl();
    @Override
    public List<Student> getStudents(String name ,String stuno,int sex,int pageIndex,int pageSize) {

        return studentDao.getStudents(name, stuno, sex,pageIndex,pageSize);
    }

    @Override
    public int total(String name, String stuno, int sex) {
        return studentDao.total(name,stuno,sex);
    }
}
